from loguru import logger
import sys

logger.add(
    sink="./logs/{time:YYYY-MM-DD}.log",
    format = "{time:YYYY-MM-DD HH:mm:ss} | {level} | {process}:{thread} | {file}:{line} - {message}",
    level="INFO",
    rotation="00:00",
    enqueue=True,  # 这使得进程安全
)
